.class Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;
.super Landroid/support/v4/view/PagerAdapter;
.source "PictureGalleryActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "PictureViewPagerAdapter"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 343
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    invoke-direct {p0}, Landroid/support/v4/view/PagerAdapter;-><init>()V

    return-void
.end method


# virtual methods
.method public destroyItem(Landroid/view/ViewGroup;ILjava/lang/Object;)V
    .registers 4
    .param p1, "container"    # Landroid/view/ViewGroup;
    .param p2, "position"    # I
    .param p3, "object"    # Ljava/lang/Object;

    .prologue
    .line 371
    check-cast p3, Landroid/view/View;

    .end local p3    # "object":Ljava/lang/Object;
    invoke-virtual {p1, p3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 372
    return-void
.end method

.method public getCount()I
    .registers 2

    .prologue
    .line 347
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;
    invoke-static {v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$000(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public instantiateItem(Landroid/view/ViewGroup;I)Landroid/view/View;
    .registers 7
    .param p1, "container"    # Landroid/view/ViewGroup;
    .param p2, "position"    # I

    .prologue
    const/4 v2, -0x1

    .line 352
    new-instance v0, Luk/co/senab/photoview/PhotoView;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Luk/co/senab/photoview/PhotoView;-><init>(Landroid/content/Context;)V

    .line 353
    .local v0, "photoView":Luk/co/senab/photoview/PhotoView;
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Luk/co/senab/photoview/PhotoView;->setMidScaleEnable(Z)V

    .line 354
    invoke-virtual {p1, v0, v2, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;II)V

    .line 356
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;
    invoke-static {v1}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$1200(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v2

    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$000(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/community/model/PictureModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/model/PictureModel;->getImageUriPath()Ljava/lang/String;

    move-result-object v1

    iget-object v3, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    invoke-static {v3}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$1100(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v3

    invoke-virtual {v2, v1, v0, v3}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 358
    new-instance v1, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter$1;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter$1;-><init>(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;)V

    invoke-virtual {v0, v1}, Luk/co/senab/photoview/PhotoView;->setOnPhotoTapListener(Luk/co/senab/photoview/PhotoViewAttacher$OnPhotoTapListener;)V

    .line 366
    return-object v0
.end method

.method public bridge synthetic instantiateItem(Landroid/view/ViewGroup;I)Ljava/lang/Object;
    .registers 4

    .prologue
    .line 343
    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;->instantiateItem(Landroid/view/ViewGroup;I)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public isViewFromObject(Landroid/view/View;Ljava/lang/Object;)Z
    .registers 4
    .param p1, "view"    # Landroid/view/View;
    .param p2, "object"    # Ljava/lang/Object;

    .prologue
    .line 376
    if-ne p1, p2, :cond_4

    const/4 v0, 0x1

    :goto_3
    return v0

    :cond_4
    const/4 v0, 0x0

    goto :goto_3
.end method
